/**
 * 管理后台
 * moonvip
 * com.tz.model
 * Content.java
 * 创建人:hufanglei
 *
 *
 */
package com.tz.bean;

import java.util.Date;
import java.util.List;

/**
 * 权限管理
 * Permission 
 * 创建人:小胡
 * 时间：2016年11月19日 17:05:29
 * qq：690328661
 * email：690328661@qq.com
 * @version 1.0.0
 * 
 */
public class Permission implements java.io.Serializable {

	private Integer id;/* 主键 */
	private String name;//名称
	private String description;//描述
	private Date createTime;// 创建时间
	private Date updateTime;// 创建时间
	private String url;//访问路径
	private String model;//模块名
	private Integer parentId;/* 父亲主键 */
	private Integer userId;// 用户ID
	private String deleteCode;// 0删除1未删除
	private String method;// 方法名
	private List<Permission> permissions;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getDeleteCode() {
		return deleteCode;
	}

	public void setDeleteCode(String deleteCode) {
		this.deleteCode = deleteCode;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public List<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
}
